get the url without the query string php

65

// get the url before the first occurence of "?"
$url = strtok($_SERVER["REQUEST_URI"], '?');

Comments

Submit
0 Comments